#ifndef _DMA_H_
#define _DMA_H_
void fillPING(Uint32 Freq);
Uint16 send_ping_ch1_i2s0(void);
Uint16 send_ping_ch0_i2s0(void);
void fillPONG(Uint32 Freq);
Uint16 send_pong_ch1_i2s0(void);
Uint16 send_pong_ch0_i2s0(void);

void set_Tuning(float f);
float get_Tuning();
int get_Key();
void set_Key(int k);

Uint16 set_dma0_ch0_i2s0_Lout(void);
Uint16 set_dma0_ch1_i2s0_Rout(void);
Uint16 set_dma3_ch0_i2s1_Lin(void);
Uint16 set_dma3_ch1_i2s1_Rin(void);
Uint16 set_dma1_ch0_i2s2_Lout(void);
Uint16 set_dma1_ch1_i2s2_Rout(void);
Uint16 set_dma2_ch0_i2s3_Lin(void);
Uint16 set_dma2_ch1_i2s3_Rin(void);
Uint16 set_dma3_ch0_i2s1_Lout(void);
Uint16 set_dma3_ch1_i2s1_Rout(void);
Uint16 set_dma2_ch0_i2s3_Lin(void);
Uint16 set_dma2_ch1_i2s3_Rin(void);
void set_dma1_ch0_stop(void);
void set_dma1_ch1_stop(void);
void set_dma0_ch0_stop(void);
void set_dma0_ch1_stop(void);
void enable_dma_int(void);
interrupt void DMA_Isr(void);

#endif
